<?php

/*
Block Name: Post Navigation
Version: 1.0
Block URI: http://www.freshpursuits.com/canvas
Author: Yas and Karsten
Description: Previous and Next links for the Wordpress Loop.
Group: Posts
*/

kiwi_postnav();

function kiwi_postnav() {
 	global $post_count;
	$i = 0;
	$posts_to_skip = $post_count;
	$total = 1;
	if(have_posts()) :
 ?>
			<div class="navigation">
				<?php if(is_page() || is_single()) { ?>
				<div class="alignleft"><?php previous_post('%',' &laquo; Previous', 'no'); ?></div>
				<div class="alignright"><?php next_post('%','Next &raquo;', 'no'); ?></div>
				<?php } else { ?>
				<div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
				<div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
				<?php } ?>
			</div>
<?php
	endif; 
	rewind_posts();
}
?>